package com.shuyu.common.utils.aliyun;


import java.util.HashMap;
import java.util.Map;

public class Id2MetaVerifyUtil {
    private static String accessKeyId = "LTAI5tEeX9DcMKUVLUDamtyg";
    private static String accessKeySecret = "5ss7KNWxyNH5HsJ3N7Ix9WJIvIxUph";
    private static String endpoint = "cloudauth.aliyuncs.com";
    private static String action = "Id2MetaVerify";
    private static String version = "2019-03-07";

    public static AliyunResponseBody verify(String identifyNum, String userName) throws Exception {
        Map<String, Object> queries = new HashMap<>();
        queries.put("ParamType", "normal");
        queries.put("IdentifyNum", identifyNum);
        queries.put("UserName", userName);
        AliyunParam aliyunParam = new AliyunParam(accessKeyId, accessKeySecret, endpoint, action, version, queries);

        return AliyunCommon.excute(aliyunParam);
    }
    public static void main(String[] args) throws Exception {
        System.out.println(Id2MetaVerifyUtil.verify("432802198711206617","参数非法"));
    }
}
